﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cofe.Core;
using Cofe.Core.Session;

namespace Cofe.Web.Session
{
    [Export(typeof(ICofeService))]
    [ServicePriority(ServicePriorityAttribute.DefaultPriority_COFEWS)]
    public class CofeWsSettings : CofeSettings, ICofeWsSettings
    {
        #region Constructor

        public CofeWsSettings(ISuspensionManager suspensionManager)
            : base(suspensionManager)
        {
        }


        public CofeWsSettings()
            : this(new AppData_SuspensionManager("_cofe.xml"))                
        {

        }

        #endregion

        #region Methods

        #endregion


        #region Data

        #endregion

        #region Public Properties
      
        public int FeedQuota
        {
            get { return GetOrDefault<int>("FeedQuota", 10); }
            set { SaveOrCreate("FeedQuota", value); }
        }
        public int FeedBatchSize
        {
            get { return GetOrDefault<int>("FeedBatchSize", 5); }
            set { SaveOrCreate("FeedBatchSize", value); }
        }

        

        #endregion

       
    }
}
